From: Cosimo Cecchi Date: Mon, 3 Oct 2011 20:17:32 +0000 (-0400) Subject: autorun: fix a typo in a variable name X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7509 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=751d2504714b649515e979cc205cea5e5b68df38;p=gnome-shell.git autorun: fix a typo in a variable name The variable |type| doesn't exist here; what we want to do is using the first member of the contentTypes array instead. Probably a leftover of some refactoring of the code I did while working on this. This patch fixes starting of the default application for a given content type if the control-center panel is set to run it when a device is plugged. https://bugzilla.gnome.org/show_bug.cgi?id=660821 --- diff --git a/js/ui/autorunManager.js b/js/ui/autorunManager.js index c4671e231..5843db487 100644 --- a/js/ui/autorunManager.js +++ b/js/ui/autorunManager.js @@ -491,7 +491,7 @@ AutorunTransientDispatcher.prototype = { let app = null; if (setting == AutorunSetting.RUN) { - app = Gio.app_info_get_default_for_type(type, false); + app = Gio.app_info_get_default_for_type(contentTypes[0], false); } else if (setting == AutorunSetting.FILES) { app = Gio.app_info_get_default_for_type('inode/directory', false); }